(function() {
	$(document).ready(function() {
		$(".ftx23 a[class=flk13]").on("click", function() {
			$(this).parent().prev().find("img").attr("src",
					"ChineseVal.jsp?id=" + new Date().getTime());
		});

		$(".login_con").find(".fl input").on("focus", function() {
					$(this).addClass("focus");
				});
		$(".login_con").find(".fl input").on("blur", function() {
					$(this).removeClass("focus");
				});
		$("#loginsubmit").on("click", function() {
			$("#loading").css({
						"display" : "block"
					});
			$.ajax({
						type : "POST",
						url : "/Spring/login.action",
						dataType : "text",
						data : "lv.uname=" + $("#loginname").val() + "&lv.pwd="
								+ $("#loginpwd").val() + "&lv.authcode="
								+ $("#authcode").val(),
						success : function(msg) {
							$("#JD_Verification1")
									.attr(
											"src",
											"ChineseVal.jsp?id="
													+ new Date().getTime());
							$("#message").parent().addClass("messblock");
							$("#loading").css({
										"display" : "none"
									});
							if (msg == 1) {
								$("#message").html("验证码输入错误!");
							} else if (msg == 2) {
								$("#message").html("用户名或密码错误!");
							} else {
								$("#mc").html(msg);
							}
						}
					});
		});
	});
})();